package com.haizhi.crm.sys.configure.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 传给页面显示用户自定义模块的vo
 * Created by caochao on 2018/05/31.
 */
@ApiModel(description = "用户自定义模块的设置包装对象" )
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserModuleSettingQo {

    @ApiModelProperty("用户自定义模块的id" )
    @NotNull
    private Long userModuleId;

    @ApiModelProperty("自定义模块可配置项的分组，每一组显示为同一行" )
    @NotNull
    private List<Setting> settings;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Setting {
        @ApiModelProperty("配置id" )
        @NotNull
        private Long settingId;

        @ApiModelProperty("设置属性值" )
        @NotNull
        private String settingValue;
    }

}
